<?php
namespace App\Repositories;

use App\Exceptions\BasicException;

class MallRepository
{
    /**
     * 个性商城添加商品
     * @param $param
     * @return mixed
     * @throws BasicException
     */
    public function mallProductsAdd($param)
    {
        $mallProduct = app('model_mall_products')->create($param);
        if($mallProduct) return $mallProduct;
        throw new BasicException(97001);
    }

}


?>